package com.tao.service.impl;


import com.tao.common.domain.pojo.MedicalRecord;
import com.tao.common.domain.pojo.Register;
import com.tao.common.domain.pojo.User;
import com.tao.mapper.AfterDiagnosisMapper;
import com.tao.service.AfterDiagnosisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class AfterDiagnosisServiceImpl implements AfterDiagnosisService {
    @Autowired
    private AfterDiagnosisMapper dao;

    @Override
    public List<Register> initPatients(User user) {
        return dao.initPatients(user);
    }

    @Override
    public List<Register> searchByName(Register register) {
        return dao.searchByName(register);
    }

    @Override
    public List<Register> searchByNumber(Register register) {
        return dao.searchByNumber(register);
    }

    @Override
    public MedicalRecord getRecord(MedicalRecord medicalRecord) {
        return dao.getRecord(medicalRecord);
    }

    @Override
    public void commitEndPatient(Register register) {
        dao.commitEndPatient(register);
    }

    @Override
    public void commitEndMedicalRecord(MedicalRecord medicalRecord) {
        dao.commitEndMedicalRecord(medicalRecord);
    }
}
